package com.gt.web.srv.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 栏目;
 *
 * @author Yu Chaohua
 * @date 2024-5-22
 */
@ApiModel(value = "栏目", description = "")
@TableName("biz_column")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Column extends BaseAuto {


    @ApiModelProperty(notes = "栏目ID")
    @TableId(value = "column_id", type = IdType.AUTO)
    private Long columnId;

    @ApiModelProperty(notes = "父类栏目ID")
    @TableField(value = "parent_id")
    private Long parentId;

    @ApiModelProperty(notes = "栏目名称")
    @TableField(value = "column_name")
    private String columnName;

    @ApiModelProperty(notes = "栏目类型0:信息,1:评议")
    @TableField(value = "column_type")
    private Integer columnType;

    @ApiModelProperty(notes = "显示顺序")
    @TableField(value = "column_sort")
    private Integer columnSort;

    @ApiModelProperty(notes = "状态（0正常 1停用）")
    @TableField(value = "status")
    private Integer status;

    @ApiModelProperty(notes = "校验是否是本村村民 0否 1是")
    @TableField(value = "column_is_village")
    private Integer columnIsVillage;


}